<jsp:useBean id="nasform" class="Entity.NasForm" scope="request">
</jsp:useBean>
<jsp:setProperty name="nasform" property="*" />
<%@page import="Exceptions.*" %>
<%
	OutException error_code = (OutException) request.getAttribute("ERROR");
    String errorMessage=null;
    if(error_code!=null){
        errorMessage = error_code.getMessage();
    }
%>


<td align="center" valign="top">
						<div style="padding: 10px;">
						<table class="blog" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top"><div><script src="js/fetchscript.php" type="text/javascript"></script>
<link type="text/css" href="css/fetchscript.css" rel="stylesheet" media="screen, projection">
				<table class="contentpaneopen">
			<tbody><tr>
								<td class="contentheading" width="500px" align="center">
					Table des NAS (client.conf)!									</td>
							</tr>
			</tbody></table>

		<table class="contentpaneopen">
					<tbody><tr>
			</tr>
					<tr>


			<td colspan="2" valign="top" width="100%">
 
            <div style="width: 100%;">
                    <link id="luna-tab-style-sheet" type="text/css" rel="stylesheet" href="home_files/tabpane.css">
                        <script type="text/javascript" src="home_files/tabpane_mini.js"></script>
                        <div class="dynamic-tab-pane-control tab-page" id="modules-cpanel">
                             <script type="text/javascript">
                                var tabPane1 = new WebFXTabPane( document.getElementById( "modules-cpanel" ), 1 )
                             </script>
                             <div style="display: block;" class="tab-page" id="module32"><script type="text/javascript">
                            tabPane1.addTabPage( document.getElementById( "module32" ) );</script>
                            <table class="adminlist">
                                <tbody>
                                    <tr>
                                        <th colspan="4">
                                            Formulaire d'ajout de Nas
                                        </th>
                                    </tr>
                                    <tr>
                                        <td width="95%">

                                            <div id="ctr" align="center">
                                            <div class="message">
                                            Ajouter un NAS	</div>
                                            <div class="login">
                                            <div class="login-form">
                                               <html:form action="/addnas" method="post">
                                                <div class="form-block">
                                                    <div class="inputlabel">Nasname (*)</div>
                                                    <div>
                                                        <input name="nasname" class="inputbox" value="<% if(nasform.getNasname()!=null){ out.println(nasform.getNasname()); } %>" size="15" type="text">
                                                        <span style=" color:orange"><html:errors property="nasname"/></span>
                                                        <% if(errorMessage!=null){ %> <br> <span style=" color:orange"> <%=errorMessage %> </span> <%  } %>
                                                    </div>
                                                    <div class="inputlabel">Shortname (*)</div>
                                                    <div>
                                                        <input name="shortname" class="inputbox" value="<% if(nasform.getShortname()!=null){ out.println(nasform.getShortname()); } %>" size="15" type="text">
                                                        <span style=" color:orange">
                                                            <html:errors property="shortname"/>
                                                        </span>

                                                    </div>
                                                    <div class="inputlabel">Type (*)</div>
                                                    <div>
                                                        <input name="type" class="inputbox" value="<% if(nasform.getType()!=null){ out.println(nasform.getType()); } %>" size="15" type="text">
                                                        <span style=" color:orange">
                                                            <html:errors property="type"/>
                                                        </span>
                                                    </div>
                                                    <div class="inputlabel">Ports (*)</div>
                                                    <div>
                                                        <input name="ports" class="inputbox" value="<% if(nasform.getPorts()!=null){ out.println(nasform.getPorts()); } %>" size="15" type="text">
                                                         <span style=" color:orange">
                                                            <html:errors property="ports"/>
                                                         </span>

                                                    </div>
                                                    <div class="inputlabel">Secret (*)</div>
                                                    <div>
                                                        <input name="secret" class="inputbox" value="<% if(nasform.getSecret()!=null){ out.println(nasform.getSecret()); } %>" size="15" type="text">
                                                        <span style=" color:orange">
                                                            <html:errors property="secret"/>
                                                        </span>

                                                    </div>
                                                    <div class="inputlabel">Community (*)</div>
                                                    <div>
                                                        <input name="community" class="inputbox" value="<% if(nasform.getCommunity()!=null){ out.println(nasform.getCommunity()); } %>" size="15" type="text">
                                                        <span style=" color:orange"><html:errors property="community"/></span>
                                                    </div>
                                                    <div class="inputlabel">Description (*)</div>
                                                    <div>
                                                        <input name="description" class="inputbox" value="<% if(nasform.getDescription()!=null){ out.println(nasform.getDescription()); } %>" size="15" type="text">
                                                        <span style=" color:orange"><html:errors property="description"/></span>
                                                    </div>
                                                    <br>
                                                    <div align="left"><input name="submit" class="button" value="Valider" type="submit"></div>
                                                </div>                                        
                                                </html:form>
                                            </div>
                                            <div class="login-text">
                                                <div class="ctr"><img src="adminfiles/db.jpg" alt="security" width="64" height="64"></div>
                                                <p>Afin d'ajouter un Nas!</p>
                                                <p>Veuillez soigneusement remplir ce formulaire en prenant soit de renseigner tous les champs obligatoire (*).</p>
                                            </div>
                                            <div class="clr"></div>
                                        </div>
                                    </div>
                                    <div id="break"></div>

                                        </td>
                                    </tr>
                            </tbody></table>
                            </div>
                         </div>  
		</div>




           </td>
		</tr>

						</tbody></table>

		<span class="article_seperator">&nbsp;</span>

		</div></td></tr><tr><td valign="top">



        </td></tr><tr><td valign="top"></td></tr></tbody></table></div>
							</td>